package com.xc.file;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableFeignClients(basePackages = {
        "com.xc.api.basic"
})
@ComponentScan({
        "com.xc.file", // 本平台扫描
        "com.xc.config.aspect", // 切面拦截，日志输出
        "com.xc.config.cors", // 跨域
        "com.xc.config.feign", // feign配置
        "com.xc.config.error", // 异常处理
        "com.xc.config.myBatis", // myBatis配置
        "com.xc.config.okHttp", // okHttp 配置
        "com.xc.config.redis", // redis 配置
        "com.xc.config.swagger", // swagger 配置
        "com.xc.config.http", // http跳转https配置
        "com.xc.api.basic", // 开发接口api
})
public class FileServerApplication {

    public static void main(String[] args) {
//        String json = AuthorityHandle.getAuthorityJson("com.xc.file.web");
//        System.out.println("接口权限信息:" + json);
        SpringApplication.run(FileServerApplication.class, args);
    }
}
